package com.cuanbobox.activity;

import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.View;
import android.widget.ImageView;

import com.bumptech.glide.Glide;
import com.cuanbobox.base.LHBaseActivity;
import com.cuanbobox.cbavcx.R;
import com.cuanbobox.utils.ActivityArgumentsUtil;
import com.cuanbobox.utils.ActivityUtil;

public class PreviewActivity extends LHBaseActivity {
    private View rootView;
    private ImageView ivImg;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        rootView= LayoutInflater.from(this).inflate(R.layout.activity_preview,null);
        setContentView(rootView);
        init();
    }

    public void init(){
        initView();
        String imgPath=new ActivityArgumentsUtil(this).getStringArguments("imgPath");
        Glide.with(this).load(imgPath).into(ivImg);
    }
    
    public void initView(){
        ivImg = findViewById(R.id.ivImg);
    }
    
    @Override
    public void requestData() {
        
    }

    @Override
    public void onDestroy() {
        super.onDestroy();
    }

    public void btnImg(View v){
        finish();
    }
}